<?
require_once dirname(__FILE__).'/ImportBase.php';
class ImportClear extends ImportBase{

	private static $instance;

    public static function &get_instance() {
        if (!self::$instance) {
            self::$instance = new self();
        }
        return self::$instance;
    }

	public function run(){

		$sql[]="truncate table posts";
		$sql[]="truncate table replies";
		$sql[]="truncate table threads";
		$sql[]="truncate table threads_ext";
		$sql[]="truncate table map_thread";

		foreach($sql as $v){
			$stmt=$this->bbs_pdo->prepare($v);
			$stmt->execute();
		}
	}
}